def METHOD_NAME(
    old_entity_alias: str,
    old_col_name: str,
    new_entity_alias: str,
    new_col_name: str,
    expression: Expression,
) -> Expression:
    if (
        not isinstance(expression, Column)
        or expression.column_name != old_col_name
        or expression.table_name is None
        or expression.table_name != old_entity_alias
    ):
        return expression
    # Leaving the alias intentionally empty because this expression is
    # not replacing the old one in the query. A brand new condition will
    # be added with the new column, which should not conflict with the
    # old column that will still be in the query.
    return Column(None, new_entity_alias, new_col_name)