HPCC-10983 Simplify code following review

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