Issue #8192 by tuj: Refactored media overview to avoid code duplication