Consolidated wnNoteDeleted listener code