HPCC-9701 Step1 refactor the interface functions

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