Placing common logic into one place.