Judge attacks plan to kill appeals body