Remove outer copy code