Removes 'flat' from config and move to globals.