Added missing break;s when converting ID_IP_ADDRESS types to ts, extracted function