Factored duplicate code between binding/counting query vertices into abstract query vertex.