There's a maintenance script called renameRestrictions.php that can be used to rename a restriction level from one name to another. However, it only takes care of the page_restrictions table -- it ignores protected_titles which uses the same concept.
This likely caused a bunch of cases similar to T290396 that no one noticed yet :/.