Move init-repo into a separate script.