Refactoring myntcd_iprange... functions.
TODO: Do the same with the myntcd_top... functions