Change DI method to work with minifiers