Small, smart dependency injector