>Do you propose that we move initialize, and initializeYoutube functions from all of the spec files here

We should use one general factory function. 

> I think this is a bad idea because initialize function is different in each spec file.

Yes, there is a lot of code duplication and we should avoid this in future.