Remove inherited dependencies.