Refactor lexer alternative lists in ANTLR 4 grammar.