def select_exp_metadata(metadata):
    """select the metadata that is valid for all data in an exp_data collection"""
    avoid = ['medium_app_key', 'full_app_key', 'iteration_index', 'id', 't']
    selection = {}
    for k, v in metadata.items():
        if k in avoid:
            continue
        selection[k] = v
    return selection