Miranda message interoperation factored out into MessageFactory.