Or maybe a MessageCodec class