Removing hardcoding of conversion type in convertapi.