Simplify lexer logic.