There's no need to store GlobalManager in a variable in line 265. This stops the assignment to undeclared variable workspaceManager warning from happening