Caterpillar constructs a cage of its own spines for protection during pupation