Refactor options parsing out of main class to allow for easier testing.

Also rename migration arguments to something very generic: "legacy" and
"destination".