Generate flagStatus for API exporting.
Add flagReason to APIExporter.