Refactored creating and cancelling notifications to the model class.