Refactor fast-import branch creation from existing commit