Handle transitive dependencies