Make getBaseObject static.

Thanks to David Majnemer for noticing.