I'd think they could genetically engineer the egg layers to only produce males in certain conditions (such as when they're incubated at a higher temperature), then only breed males when they need more roosters.
OR, if sex is selected by sperm type (as with humans) artificially inseminate the hens.
I suspect there are dozens of valid technical solutions that are cost effective and would allow them to not shred male chicks.