Removes legacy dependencies.