That reminds me of that scene in the Douglas Adam’s Hitchhiker’s Guide to the Galaxy, where
spoilerthe Golgafrinchans invent an incoming world-ending tragedy, in an excuse to send into space all people with useless/supefluous jobs (bureaucrats, hairdressers, telephone cleaners, etc.) to a new planet, saying that the remaining parts of society will come after.