Refactor the single path metadata extractor as a particular case of the multiple path metadata extractor