I once knew of a church (congregation) who corporately decided they would follow this principle; they would withhold fellowship from any believer who lived a consistently worldly lifestyle. Twenty minutes later, none of them would have anything to do with anyone else in the church.
Here's the problem: At what point does either the congregation or the individual withhold fellowship?
There are some occasions when some members who are so out of line that no discussion is required; members simply avoid them as they are uncomfortable being in the subject's company. But those are the minority, aren't they?
On the other hand, I know of congregations that are KJVo groups. They won't have anything to do with Christians who actually carry and use any Bible but a KJV. I find that unsupportable, personally. (My 'personal opinion' and a buck and a half equals coffee at Denny's.) Happily, they are rather few in number as well.
The great majority of us (individuals and congregations) are in the middle. We all sin, and everyone has a 'favorite' sin; the sin they find easiest to commit. Some of us seemingly commit sin more often than others (and I think we all understand how difficult that really is to determine).
Evil acts worthy of discipline are acts that blatantly deny the authority of God, are committed openly and brazenly, and bring the teaching of God through Jesus into disrepute. Additionally, the person so involved admits no guilt, fault or regret in the matter. Of course, a person arrested for embezzlement or child pornography nearly always seems regretful. Perhaps it is merely over being caught, but I suppose it could be a starting place.
Very few of us worship idols in the sense of a carved or sculpted doodad on the mantle. But what about my gun collection? What about the racing car owned by Brother So and so? What about the 'Women's Affirmation Society' that is Sister Such and such's pet project? There's all sorts of things like this; and for every one of them, there's somebody who will denounce each 'item' as an idolatrous interest. So; how to decide?
I think the answer is pretty simple. The Holy Spirit will convict multiple members of the problem. If the Holy Spirit does not move 'all of us' to act, then perhaps we should not proceed with 'discipline' or - in the words of Calpernia from To Kill a Mockingbird, 'churching'.
Finally, the whole point of church discipline is to bring the sinful Christian back into fellowship with the Lord primarily and the congregation secondly. We want a 'wandering' Christian to return to Christ's service and grace. That should be the goal; not just feeling 'righteous' about not being as bad as 'that one'.