#2 use a function factory to produce dplyr verbs consistently