Move CMIS query to its own method.