Add changes to support the sparsity building for horizontal facets.