Small refactoring for terrain resources. (#1)