Updating `filter.factory()` to  set the `type` of the `input`