When a defendant, whether a natural person or a corporation, is adjudged guilty of usurping, unlawfully holding, or exercising any office or franchise, judgment shall be rendered that such defendant be excluded from the office or franchise, and that defendant pay the costs.
T.C.A. § 29-35-116