Question d’entretien chez Thoughtworks

How to refactor common code into a base class.