Refactor a notify logic with module partition.