Let create a class EndpointsServices or maybe EndpointsServicesImpl. Which will be created inside EndpointsServicesAddon.
```
class EndpointsServices
{
public:
  EndpointsServices(..)
  AddEndpoints(const std::vector<endpoints>& endpoints);
}

```

EndpointsServicesAddon will load endpoints from parameters and pass them to EndpointsServicesImpl.

At the end we will have three classes: EndpointServicesImpl, EndpointsServicesAddon, EndpointServicesFactory.