Perform more CSE on the grammar.