This should also be a static function:
`static QStringList buildTrainingArgs(const TrainParams &params)`. Same for other global functions that don't have visibility outside their source file.