We should use the ContentHelper#getViewAsJSON instead.
CMS-10741 Remove all unused code around getting metadatasets