On an Earth-like planet, an intelligent species evolved in symbiosis with another species that lives in their digestive system and act as the microbial gut flora in humans do. What implementations of macro-scale creatures (such as insects or something similar) would allow them to take over as much of the functionality in their host's digestive system as possible?