Extract Composite

Problem:

Subclasses in a hierarchy implement the same Composite.

Solution:

Extract a superclass that implements the Composite.