add intermediate best_factor_bins
fix bad refactoring