Introduce terminal and platform base message classes. The hierarchy of
the message is clear.