Migrate profile identity from string to ProfileIdentity