def get_metadata_helper(instance):
    """
    Helper method for gathering collection metadata

    Parameters:
    instance : WorkflowCollection object

    Returns:
        List of Lists of Metadata associated with the Collection
    """
    metadata_list = []
    for hierarchy in instance.metadata.all():
        metadata_list.append(hierarchy.group_hierarchy)

    return metadata_list