Would be nice if we had tests for this big `getPlatform` function. Is that too big of a pain?