Refactor getClinics