Remove logout option from interface when in demo mode
Extract mode checking logic on interface into helper