Add the message factory. refs #7262