HPCC-2998 Move helper to thorcommon and delete unused class

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