restore dependency list and remove $injector usage.