Remove duplicated assignments