Remove unused code in dep. injection