The above comment I think i directed to the name of the function, not what it does. Maybe a name like groupConfigs() might be more clear?