Refactoring restrict of events visualization config