Extract format
Use `close!`
Extract with_tempfile