The gut is severed at the posterior end of the body cavity, near the anus. The gut and other organs attached to it are pulled forward out of the way, or removed entirely.