Cleans up some curlybrace shennanigans.