Move extent copy and hash logic to a new file. am: a48f630400
am: cc17d10a42

Change-Id: I1fae867230787838047b645b119ac68181063753