Pull out grouping keys as values