Rename variable according to schema