HPCC-10219 Share common base with all join and other join helpers

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