def collection_image_location(instance, filename):
    """Return the location of a stored media file for a Workflow Collection."""
    collection_id = instance.id
    image_type = instance.type
    file_extension = filename.rpartition(".")[2]

    return f"workflow_system/collections/{collection_id}/{image_type}.{file_extension}"