Rewrite the UpdateIndexDatasource to be more "readable" and only do the jobs for content items,
Give the RenderingReferences into the Run Method (like that we can retrieve the parameters)
Call to the method MediaItemContentExtractor instead of copy/paste the code