Exclude unused transitive dependencies