Introduce get_best_selling() helper function. #1376