Create table gateway factory so table gateways can be created in the abstract mapper rather than the mapper service definition.