Check for duplicate owner dependencies.

Rushabh Lathia and Robert Haas, reviewed by Jeevan Chalke