Refactored `filter.factory()` to return an instance of `DataFilter`