* Reduce logged data about scopes from profilesScopes.
* For all referenced scopes, only include profiles list.
* Remove scopes without profile references from scopeIndex.
* Reduce logged data about scopes from profilesScopes.
* For all referenced scopes, only include profiles list.
* Remove scopes without profile references from scopeIndex.