Use class structure to create the nested facet query