`sampleTerrain` references `TerrainState` in Scene, but doesn't actually use it.  Aside from that, the only dependencies are Core and ThirdParty types, so it would be easy to move to Core.