LeaderAppointer currently makes all partition detection decisions, so I consolidated this related code there.