MDL-40935 events: get_legacy_eventname() should be public and static