The above "metabug" was fixed up by going over every file in the code and looking for the literal strings "50" and "51" which are the common levels for avatar and immortal. The other levels from 52-65 were hunted for the hard way: by using grep. This isn't necessarily going to account for every last possible place there are hardcoded level values, but this should take care of nearly all of the important ones.