Functorize utility filter functions.