separate rest module from domain module