Move exported variables into attributes