Related to #28. Wrong message factory used, should get it from the
logger.