Here, there's no need to create a val; you can just do

    case SchedulingMode.FAIR =>
      new FairSchedulingAlgorithm