Make metadata extraction part of processing pipeline.