Improve the query builder with a helper method