Add plugabble mechanism for flows factories
Support the case when user may have no tenantId