code: func IsReplicatedService(service *api.Service) bool {
  	// service nil validation is required as there are scenarios
  	// where service is removed from store
  	if service == nil {
  		return false
  	}
  	_, ok := service.Spec.GetMode().(*api.ServiceSpec_Replicated)
  	return ok
  }
docs: // IsReplicatedService checks if a service is a replicated service.