Add ValidateSources function to facilitate dupe migration detection in tests.