Simplify TreeNode.findGen