Move the churn calculation into the repo