Fix warnings from deprecated observer extension
Description
Warning fixes for the unneeded Kotlin observer extension and general code-cleanup
Motivation and Context
Reduced warning count by 24
Types of changes
-
Bug fix (non-breaking change which fixes an issue)
Checklist
-
I have read the CONTRIBUTING section of the README document.
Resolves
Fixes: #2468 (closed)