Remove copy_object and extract wrap_element.