Define `extract_format` during "compile time"