Prepare Lexer class for refactoring.
Factor out lexers.