This line can be factored out of the **if** and **else** branches.