Removes redundant queryBuilder.