def METHOD_NAME(
    bind: Connection,
    select_query: TextClause,
    update_query: TextClause,
    region_mapping: Dict[str, str],
) -> None:
    """Upgrade regions for tables that have a "regions" list field"""
    existing_records: ResultProxy = bind.execute(select_query)
    for row in existing_records:
        regions: List[str] = row["regions"] or []
        regions_updated: bool = False
        for i, val in enumerate(regions):
            new_region = get_replacement_region(val, region_mapping)
            if val != new_region:
                regions_updated = True
                regions[i] = new_region
        if regions_updated:
            bind.execute(
                update_query,
                {"id": row["id"], "updated_regions": regions},
            )