Safer handling of gen-level information for SHERPA