Move voters queries into a query object.