Cleaned up Editor._copy_target_attributes_to_memory().