This isn't used and is duplicated with the one in copy-build-stage-data.