Reusing types between service and client