Every new law must have a 10 year (or whatever) expiration date. If it’s a good law, then it’ll quickly get reenacted. Laws can be revoted on starting 90 days before they’re due to expire so there isn’t any gap.
There has to be an automatic cleanup of bad regulations, like the trash bin on a computer. Otherwise, the laws will build up until everything’s illegal.