Fixed bug in detecting duplicates for usage refactor migration jar