Use the message enum's class instead of one of its elements