Move tools/clone into a separate file