Remove non-contiugous states from states collections.