Unified all the filter modifying functions into apply_filter