CDK-580: Move partitioning helper methods to CrunchDatasets.