move hateoas from top level to nested