Remove duplicates in roleMapping, see #3270