Refactor the algorithmic part of doing rollouts into Rollout.java