refactoring media embeder. #FTDUEDTR-1282