Refactored EventHandler functions as free functions & flagged Lexeme getters as const