This temporary variable is used exactly once, so we can move this line into the `%if` below.