Extract Superclass

You have two classes with similar features.

Create a superclass and move the common features to the superclass.

For more inforamtion see page 336 of Refactoring