cleanup: refactor copy_large_unboxed_object and copy_large_object