Refactor tilejson