separate rest models from domain module