Extract the sidebar into its own class