Cleanup generic_scheduler

Defer the initialization to the point it is necessary.