The problem with this approach is that `replace` is not in the interface. If the input filter implementation used does not have that method, we end up getting an error.

Two options:

1. Duck-type: `if (method_exists($inputFilter, 'replace'))`
2. Create a `ReplaceableInputInterface` with the `replace` method, and have the `BaseInputFilter` implement it. Then do an `instanceof` check: `if ($inputFilter instanceof ReplaceableInputInterface)`.

The second is cleaner from an OOP perspective, and will ensure we include the functionality directly in the base interface in v3.