Replace hardcoded mode letters passed to IsModeSet() and GetModeParameter() with ModeHandlers, part 1