Move John[TreeNode] class definitions to their own files.