Factoring out cbcopy_runner