Remove useless code from ItemScript