BS-8685, add replace duplicate policy