Refactoring addSidebarToggler()