Cleanup generated __copy__ methods