It would be more complicates to simplify this code. RestService is a structure with complex files:
typedef struct RestService
{
  std::string   verb;
  RequestType   request;
  int           components;
  std::string   compV[6];
  std::string   payloadWord;
  RestTreat     treat;
} RestService;

restServiceV  and restServiceNgsi9V, are not declared as a pointer, and may be a function of copy will be required.