Reorganizing to dismiss
Boss is changing the organization only to get an unwanted person out. Should it be you, take the money (position) and run instead of wasting your energy on fighting back. You cannot deceive your boss. Leave positive impression behind you as much as possible for future reference checking. Initiate court procedure only if you can prove that the termination was wrongful.