Refactoring YouTube extractor to support video format selection