def groups_in_grouping(state_collection, grouping_name):
    """
    Returns an iterable which goes over all the groups in a grouping
    
    Use instead of direct access to future proof in case of changes in StateCollection
    """
    return state_collection.groupings.get(grouping_name, {}).values()
