Refactor filters using ActiveSupport.