Refactor LearningExperiment.