Move two variable assignments into one