The dairy industry has been plagued by a persistent global problem for decades—bacterial infection of cow udders that significantly reduces milk production.