remove transitive dependencies