3378307: Fixes from running drupal rector
Ran locally for D10 Compatibility. Fixes some AssertRaw incompatibilities manually that rector couldn't fix. Updates classes to align with the drupal standard of not using /drupal in classes and uses dependency injection instead.
Closes #3378307
Edited by Devan Bicher