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

Change-Id: I4ea7e242c5d4055329af133b73d6148b611dffa8