Remove redundant dependency tree rebuilds.