Refactor GetContigOutputAndScaffoldInput