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.