Decouple lexer functionality