Reordered parseMessage patterns for readability