Re-design SerFormats to create-write-close pattern.