fix: `generalize` excessive resource usage

closes #3524
2 files changed