Simplify grammar by inlining.