Extract common behaviour in base class and other refactorings.