Refactoring method Notification#notify