 After completion of the exit hole it spins a cocoon within the seed, with a passageway leading to the door.During the following pupal stage the larva will not move any more.Normally in the spring, the moth will force its way out of the bean through a round "trap door", leaving behind the pupal casing.