Remove duplications by defines variables