private void transmogrifyTitles(TransmogrificationConfig config) {
    // Replaces forbidden characters and makes sure that the title is not too long
    for (PhotoModel photo : photos) {
      photo.cleanTitle(
          config.getPhotoTitleForbiddenCharacters(),
          config.getPhotoTitleReplacementCharacter(),
          config.getPhotoTitleMaxLength());
    }

    for (VideoModel video : videos) {
      video.cleanName(
          config.getVideoTitleForbiddenCharacters(),
          config.getVideoTitleReplacementCharacter(),
          config.getVideoTitleMaxLength());
    }

    for (MediaAlbum album : albums) {
      album.cleanName(
          config.getAlbumNameForbiddenCharacters(),
          config.getAlbumNameReplacementCharacter(),
          config.getAlbumNameMaxLength());
    }
  }
Extracts a new VideosContainerResource from the relevant matching fields in a given
MediaContainerResource.
portability-types-common/src/main/java/org/datatransferproject/types/common/models/media/MediaContainerResource.java