Introduce and use generic_filter_pre_select().