Separate functions to build "Predictor" from "predictor.go".