If the fairy tale book hints at shunning for any reason, and the fairy tale believers take it too far, the fault is the book for not being clear enough, in exact detail, what it is implying.
How about an entire book of the Bible on shunning, how to do it and not do it. Instead we get Song of Solomon, or Job, or some other ignorable tripe.