Extracting function in MajorRankingAdapter