Refactor the OpenAPI definitions of the content repository endpoints.