MDL-40935 events: get_legacy_eventname() should be public and static
MDL-40935 phpunit: Remove the wrapper for get_legacy_eventname() since it is public now