Using multiple inheritance for DRYness