Separating RestService trait from RestServiceActor class.