refactor common code in LSR::{GetTerrainTypeData,GetGroundInfo}