Use active_support to refactor filters.