Refactored #rsm_id{}. Replaced none with undefined, external_message_id() with message_id().