Issue #141: Converting maintenance mode settings to use state system.