HPCC-12046 More refactoring

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>