Simplify grammar.