Reset parts in the automatically created count query builder which are not needed