Removing the pupa renders the value of the cocoon to nearly nothing, as far as the value of the silk itself. From the moth's point, it seems to simply be a protective 'home' for the pupa. On rare occasions, a moth caterpillar will create a cocoon and pupate outside of it. Other times one will fail to make a cocoon. Normally, the caterpillar makes the cocoon and pupates inside it.
There are poems and prose that state that if a cocoon is opened the adult moth will be unhealthy or won't live. So what do we believe? It's hard to know what truth is and what isn't in this world. Research may turn up many pages on the internet that support that erroneous claim.
We've removed many pupae from cocoons. A cocoon is simply something like a sleeping bag. In nature, though, these pupae would be vulnerable outside its cocoon. Predators and parasitoids would have better access to it.
In nature, moth caterpillars that pupate outside the cocoon would have less chance of survival. They are outside the protection of the cocoon.
It makes me wonder - what is my cocoon? Where is my safety? Am I making choices that place me outside my cocoon of safety?
A bible study quickly reveals the source of our protection and our safety. First, God himself. Second, good counselors.
The name of the LORD is a strong tower: the righteous runneth into it, and is safe.
The horse is prepared against the day of battle: but safety is of the LORD.
For by wise counsel thou shalt make thy war: and in multitude of counsellors there is safety.
The fear of man bringeth a snare: but whoso putteth his trust in the LORD shall be safe.