I would like to write a factory for classes which essentially only differ in the type of message they process, but otherwise are completely the same. I thought about writing a c