Remove old code remnant from palette handler.