Fixing NPE due to use of dependencies before Spring injection