Apply DRY.