Refactor PFScheduler and move logic into base class EnsembleScheduler.