HPCC-9307 Clean up the code

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