deduped code involving UDTT name construction