Eliminate duplicate references