Move some upload/copy logic into a helper function (#531)
Move some upload/copy logic into a helper function (#531)

quiltdata/quilt,quiltdata/quilt,quiltdata/quilt,quiltdata/quilt-compiler,quiltdata/quilt-compiler,quiltdata/quilt-compiler,quiltdata/quilt,quiltdata/quilt,quiltdata/quilt-compiler