Move GDC cloning into its own function