Better data extraction from Selection.

Moved the EnclosedChan to its own file.