We should get tests in place for folds if we want to include this code in the PR. I think it's okay to not use the decorations API for folds, but I think we should put this fold checking code in the same place we construct the hash of decoration classes I suggested we build.