Move specific code parts to the subclasses.