Refactor LexRule- Thanks again @ozrior!