I have learned throughout my life as a composer chiefly through my mistakes and pursuits of false assumptions, not by my exposure to founts of wisdom and knowledge.
When Christians are caught in sin, they do not need isolation or amputation; they need restoration. The proper thing to do is to help them confess their sins and find forgiveness in Christ, and then welcome them back into the fellowship of the church.