Replace range filters with range queries.