Cherry-picked unchanged from the pull request, for F12; the follow-up commit turns its helper into the single copy_blobs helper and fixes what the review found.