Some refactorings for ParserRules