Subclasses in a hierarchy implement the same Composite.
Extract a superclass that implements the Composite.