prtree: Clean up some construction code.