async def override_record(record, existing_record, overrides):
    """
    Removes fields from record if user has overriden them on airtable.

    Args:
        record (``dictionary``): Record from which fields will be removed if overwritten.
        existing_record (``dictionary``): Record to check for overrides.
        overrides (``list``): List of dictionaries
            Each dictionary is composed of two items: 1. The override checkbox field name, 2. The override field name
            {"ref_field": "field name", "override_field": "field name"}
    Return:
        record.
    """  # noqa
    for override in overrides:
        ref_field = override.get("ref_field")
        override_field = override.get("override_field")
        if existing_record["fields"].get(ref_field):
            record["fields"][override_field] = existing_record["fields"][
                override_field
            ]
    return record