The cursor response generation functions should be under query and under command and they should reside in the same library as the getMore request.