Greatly simplify the uniqueness ratio post-processing code.