Remove unused dependencies in `Build`.