code: def refineData(root, options):
      
      worker = root.worker
      job = root.jobs
      jobTypesTree = root.job_types
      jobTypes = []
      for childName in jobTypesTree:
          jobTypes.append(jobTypesTree[childName])
      return root, worker, job, jobTypes
docs: walk down from the root and gather up the important bits.