Dependency pruning