separate a RestService.Core