Migrated to allow bracesMode to be handled by different mode.