qrecvxmpp: refactoring