HPCC-9320 Preliminary minor refactoring for using global graph results

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Merge pull request #4993 from ghalliday/issue9320

HPCC-9320 Preliminary minor refactoring for using global graph results

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>