When I was a little kid I went to a fundamentalist baptist church that worked exactly like this. If a deacon learned that someone wore a skirt above the knee, or listened to a pop song, that person was excommunicated. If anyone then contacted the apostate outside of church, they were excommunicated too. And so on.
It’s a purity cult.