Remove QueryBuilder from parameters if it's not used