def delete_perm_location(rec) -> tuple[str, dict]:
    """
    Delete the permanentLocationId and permanentLocation from the input item record.

    Args:
        rec: dictionary loaded from a JSON record

    Returns:
        A tuple containing the old permanentLocationId (UUID) and the old permanentLocation (as dictionary).
    """

    old_loc_id = rec.pop("permanentLocationId", None)
    old_loc = rec.pop("permanentLocation", None)
    return (old_loc_id, old_loc)