Move rest service into a createable type