Reorganized conversion code into mime-type specific converters