We don't need to implement a separate version of `rotate` for safe matrix, since it just a wrapper around a simple matrix. So, you could just delegate it to wrapped matrix like this:

```java
return rotate(factory);
```