Finding duplicate tracks and removing/isolating them?

See this thread on the general approach: