See #376. Relabling media to documents and media.