minimize transitive dependencies