Avoid code duplication.
Fix a typo.
Reduce code duplication.
More code reduction.
And yet even more.