Removes obsolete dependencies