Ooh, a sponge… Hadn’t thought of that. My old man used to have loads of this weird high density foam stuff (looked like it was made up of lots of smaller bits stuck together, hence its affection moniker of ‘dog meat’) which you could carve into whatever shape you needed. Two halves clamped around the derailleur and bungied together might do the trick. May not guard against bending though – possibly a sophisticated version of the bath towel.
Sponge INSIDE the snap lock tupperware though = pathway to safe transport and, when taken to its logical level of mass production, untold wealth and happiness!
(I’m completely aware this is a clear case of over-engineering for a non-existent issue, by the way.)