Is it ok to just set phone.type to details.carrier? Maybe it's ux requirement that we need to show phone value if carrier not exist. I will discuss with ux about the carrier field.