Refactoring: make training/evaluation handlers public classes.