Cleanup SidebarController.