The codebase seemingly has some instances of term transforming where we could use TermTransformer or BottomUpTermTransformer.
For example:
SymbolDefinitionInlining
SymbolOccurrenceReplacement
Hunt these down and simplify them to remove hard-to-maintain term transformations.