Refactored `mime` related functionality to `MIME` manager