Use DISTINCT and lower() to filter out replications in definitions