If any word, phrase, sentence, part, section, subsection or other portion of this chapter, or the application thereof to any person or to any circumstance, is adjudged or declared invalid or unenforceable by a court or other tribunal of competent jurisdiction, then and in such an event, such judgment or declaration shall be confined in its interpretation and operation only to the provision of this chapter that is directly involved in the controversy in which such judgment or declaration is rendered, and such judgment or declaration of invalidity or unenforceability shall not affect or impair the validity or enforceability of the remainder of this chapter or the application thereof to any other persons to circumstances. If necessary as to such person or circumstance, such invalid or unenforceable provision shall be and be deemed severed herefrom, and the Town Board hereby declares that it would have enacted this chapter, the remainder thereof, even if, as to particular provisions and persons or circumstances, a portion thereof is severed or declared invalid or unenforceable.