Injecting ConfigLoader and Config instead of using explicit singleton