Make the message mapper registry use a user defined factory