HPCC-9701 Initial step in refactoring meta calculation

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