Pushed the operating_modes enum into a namespace.