Similarly to the refactor of cmdBlockCommit in a previous commit this does the same change for cmdBlockCopy.