Merge all the simple copying into a single function