Extract callbacks in MachineLearner model into separate module