Extract a common base class