Re-factor by taking the classFacet out and become a separate file.