Fix DRY violation.