Abstract content type MIME generator to its own class