define namespaces at the top of the file
There's no need to pass them through the closure like that.
I also added the loading guard to the Notifications file.