Moved code to file-conversion.core