Remove non-existing dependencies.