Improve legislation JSON and add legislation compaction (like Tree2Object, that it will replace).