Refactor editor mime type/code mapping code into Farabi::MIME