There is a church disciplinary process that makes that determination. Usually, holding an idea is not enough. It is advocating for those ideas publicly after multiple instances of being instructed to desist that leads to excommunication.
Does that answer your question?