Refactoring static evaluation functions