resourceId, resourceTenantAlias and resourceVisibility can be collapsed into a single `resource` parameter as per explanation a bit later on on the `resolveImplicitRole` function definition.