If you set the granularity like:
```javascript
var granularity = (cornerType.value === CornerType.BEVELED.value) ? 1 : Math.ceil(angle / CesiumMath.toRadians(5)) + 1;
```
and remove the `+ 1` from the granularity when computing the angle for the rotation, then you can remove the if-else and duplicate code below.