Remove obsolete dependencies.