QueryManager: remove unused function, make functions protected if we can