This will help us to look for the level whenever we need that.
Setting ui config seems like an abuse of the config system. I think it'll be cleaner if feed the right "repo" object directly to the command function. i.e. By default commands get the "visible" repo: repo.filtered('visible') - see hg.repository. We can change that and add special filter - like repo.fitlered('visible-directaccess-warn'). So the repo object carries the information itself.