Removed GlobalState service and moved the logic inside the corresponding controllers.