Not a full refactor as it still goes through ScriptLanguage so it's hacky, but at least it can now compile without this.
Co-Authored-By: jmb462 <jmb462@gmail.com>