Some code to start restructuring MSGraph node into recursive form