[DF-2435] base refactoring of mimeHelper