Moved unit of work type to the service model.