Refactoring reusables into base classes.