Add an `assert_deprecated` for `sanitize_sql_hash_for_conditions`