Move tileset data loading code to the TilesetData class.