If we can see two `set`s are performed one after the other then we can combine it into one. I think we can use rewrite rules to do that.