Tidy class handling on the sidebar navigation mixin.