extrace common rest adapter instantiation as BaseService