cat-gen: Use a function to map to long osrels
cat-gen: Update the comment