Updating import.targets for flattening