This code is already in a method, so simply call:

```
    RemoveWorkspaceNotifications();
```