Change notification defadvices to hooks.