MatrixRTC: Cleaning up + address some sonarqube issues (#5125)
* cleanup: Remove deprecated API
* clean: breakdown method to reduce cognitive complexity
* cleanup: use readonly has never reassigned
* cleanup: Do not use an object literal as default
* quick format
* fixup: missed a param while refactoring
* cleanup: additional breakdown to reduce cognitive complexity
* review: better names