Use `elif` to reduce nesting.