[extractor/generic] Extract f4m formats and refactor common info