Move mode configuration to mode.config ns.