Refactor 'notify' Wire handler.