Revert "Use classes for setup scripts"

Reverts cargomedia/CM#1430

@tomaszdurka @alexispeter fyi

@dlondero please review