MDL-40230: MASTER Refactor to use moodle-core-notification-dialogue