extrat a dependency injector