is there something about query_filter() that makes it exclusive to the CCI Manager?  If not, I would suggest moving it to utils.