Move case classes for messages to another file