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

Change-Id: Ie516234987b574214d3a9a93ac10ce47d6a26c74