Slight refactoring of MediaDetailProvider