           break
         }
       }
-      HealthKitDataProvider().retrieveDistance(forInterval: weekInterval) { [weak self] (result) in
+      healthKitDataProvider.retrieveDistance(forInterval: weekInterval) { [weak self] (result) in
         switch result {
         case .success(let count):
           self?.milesCountWeek = count


    switch UserInfo.pedometerSource {
    case .healthKit:
      HealthKitDataProvider().retrieveDistance(forInterval: dayInterval) { [weak self] (result) in
        switch result {
        case .success(let count):
          self?.milesCountDay = count

  private var milesCountDay: Int = 0
  private var milesCountWeek: Int = 0
  private var commitment: Int = 0
  private var healthKitDataProvider = HealthKitDataProvider()

  enum DashboardContext: Context {
    case inviteSupporters
