Rename '_query_factory' helper -> '_get_factory' to avoid confustion.

Incorporates feedback from @dhermees.