Refactor lexer alternative lists in ANTLR4 grammar.