tidy up convert function

62 jobs for classification_module in 312 minutes and 51 seconds (queued for 2 seconds)