Extracting Ns._ip_profile_to_ro() and creating unit test