Decouple message fields from message payload to ease serialization.