Split expression grammar into smaller rulesets