extract common code from filter/query_conditions methods.
rename unused lambda parameter
leave it to the call site to provide valid arguments.