(feat) move service from factory to a provider