Refactoring myntcd_top... functions.