Since we plan to introduce support specific to some sites and the method to generate the YQL query is already getting too complex, it would be better to separate it in several classes. We could have a Factory that would decide which class (from a common interface) to use based on the content.