Refine hoisting of unique values.