Removing unnecessary PahiCode