Made createOrFetchActor a static method.

This was done so it can be used as a helper function in
scripts, etc.