refactored tenancy configuation to global object