Refactor copyBucketStoreDeltas().

A callback approach allows copyBucketStoreDeltas() to be simplified
and the calling code to read more straightforward.