Clone objects imported from code