Refactoring. Enum as InfoMessageType