Remove fields that are no more kept when converting an input package to an output package.