Remove input_prefilter hook

Our code already doesn't call this hook (as pointed out in gh-4709), and
probably hasn't for some time, so it seems ~no-one is relying on it. We
have much more powerful APIs to do the same thing.
Merge pull request #4716 from takluyver/remove-prefilter-hook

Remove input_prefilter hook

closes #4709