Refactor rule notification intelligence