This could be move in a service as you create notification and delete it in two different controllers. I think moving it in the same place would be better.