[BACKLOG-1222] -- moved global deps into define call for optimization co...

...de