Object dependencies are now injected, removed global variables