Added createFacets method to FacetFactory