exclude unused transitive dependencies