Improving & standardising generation of prefixes for flattened comps