Refactored evaluation of filters