def get_type(record):
    """Get ILL type from legacy request_type."""
    ill_type = "MIGRATED_UNKNOWN"

    if record["request_type"] == "article":
        ill_type = "DIGITAL"

    if record["request_type"] == "book":
        ill_type = "PHYSICAL_COPY"

    return ill_type