Now with more beautiful Scala -- Simplify RankPersistence