Encapsulate and De-encapsulate
The Encapsulate command in the Edit menu creates a subpatcher from a group of objects. The De-encapsulate command does the opposite: it transforms a subpatcher into a group of objects in the subpatcher's parent patch.

Encapsulating objects
The new subpatcher's window will open, showing the portion of the patch you selected for encapsulation, including the proper number of inlet and outlet objects.

De-encapsulating a subpatch