import copy


def drop_volatile(data):
    """
    Remove fields that change between test runs from the dictionary `data`.
    """
    clean = copy.copy(data)

    for field in ["id", "createdAt", "updatedAt", "createdBy", "updatedBy"]:
        clean.pop(field, None)

    return clean