Transform objects in core and REST responses