Extract deep cloning methods from DiffSync
Polish