Another way to do this would be to loop over `self.variables` instead. I expect that would be significantly faster because it uses one less layer of abstraction (particularly relevant if Dataset.reduce is in the inner loop of a groupby operation).