Rework filter process code to make the interface simpler.