Old code playing with Dependency Injection