The emphasis is on prevention by ensuring clean water, promoting good personal hygiene, and food handling practices, including hand washing and trying to prevent defecation in open areas.
It is highly probable that dinosaurs had a cloaca-as do most birds and reptiles-which is a single opening for urination, defecation, and reproduction.