Remove the query_formats function