New typedef so the code is easier to follow because it carries more information. Types should make the code more readable for people, not machines.
DRY that code up a bit.
Clean up a bunch of calls to GetScriptInterface()
Sometimes friendship is not magic.