Minor refactoring in trntutil