Refactoring Ranking and RankingImpl