Remove duplicated variables