MediaEmbed: moved some code around. No functional change intended
MediaEmbed: moved some code around. No functional change intended

s9e/TextFormatter,s9e/TextFormatter,s9e/TextFormatter,s9e/TextFormatter