Thank you from the bottom of my heart for being pretty much the first guy other than myself (no offense intended to anyone else who might happen upon this) who would write this def rather than duplicating  postTransform(preTransform(tree)).