Restructure class sequence.