They excommunicate themselves through their actions.
That’s easy enough to say, yet when notoriously evil people keep coming to church as a show, they often get treated as though they hadn’t.