move rest model into a separate project