Refactoring static evaluator helper.