Cleanup COBScheduler code