Simplify grammar format