Replace register names with new definitions