Extract interface for QueryHelper