Refactor User#resetName and User#forceRename
Refactor User#resetName and User#forceRename

The two functions shared a lot of duplicate code which is no longer necessary.

QuiteQuiet/Pokemon-Showdown,panpawn/Pokemon-Showdown,svivian/Pokemon-Showdown,DesoGit/TsunamiPS,aakashrajput/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,KewlStatics/Alliance,ZestOfLife/FestiveLife,xCrystal/Pokemon-Showdown,KewlStatics/Alliance,KewlStatics/Shit,ShowdownHelper/Saffron,panpawn/Gold-Server,DesoGit/Tsunami_PS,zek7rom/SpacialGaze,CharizardtheFireMage/Showdown-Boilerplate,urkerab/Pokemon-Showdown,xfix/Pokemon-Showdown,SolarisFox/Pokemon-Showdown,HoeenCoder/SpacialGaze,HoeenCoder/SpacialGaze,xfix/Pokemon-Showdown,Zarel/Pokemon-Showdown,xfix/Pokemon-Showdown,AustinXII/Pokemon-Showdown,Volcos/SpacialGaze,jumbowhales/Pokemon-Showdown,Enigami/Pokemon-Showdown,jd4564/Pokemon-Showdown,Lord-Haji/SpacialGaze,Mystifi/Exiled,danpantry/Pokemon-Showdown,AustinXII/Pokemon-Showdown,QuiteQuiet/Pokemon-Showdown,jumbowhales/Pokemon-Showdown,Sora-League/Sora,panpawn/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,Git-Worm/City-PS,Mystifi/Exiled,xfix/Pokemon-Showdown,Pikachuun/Pokemon-Showdown,Lord-Haji/SpacialGaze,Elveman/RPCShowdownServer,xfix/Pokemon-Showdown,QuiteQuiet/Pokemon-Showdown,DesoGit/Tsunami_PS,Sora-League/Sora,Zarel/Pokemon-Showdown,svivian/Pokemon-Showdown,CreaturePhil/Showdown-Boilerplate,jumbowhales/Pokemon-Showdown,Flareninja/Showdown-Boilerplate,HoeenCoder/SpacialGaze,azum4roll/Pokemon-Showdown,Bryan-0/Pokemon-Showdown,Elveman/RPCShowdownServer,AnaRitaTorres/Pokemon-Showdown,Pikachuun/Pokemon-Showdown,DesoGit/TsunamiPS,TbirdClanWish/Pokemon-Showdown,aakashrajput/Pokemon-Showdown,zek7rom/SpacialGaze,Enigami/Pokemon-Showdown,DarkSuicune/Pokemon-Showdown,CreaturePhil/Showdown-Boilerplate,sirDonovan/Pokemon-Showdown,urkerab/Pokemon-Showdown,PS-Spectral/Spectral,Zarel/Pokemon-Showdown,panpawn/Gold-Server,svivian/Pokemon-Showdown,EienSeiryuu/Pokemon-Showdown,Guernouille/Pokemon-Showdown,Git-Worm/City-PS,Lord-Haji/SpacialGaze,EienSeiryuu/Pokemon-Showdown,xCrystal/Pokemon-Showdown,CharizardtheFireMage/Showdown-Boilerplate,danpantry/Pokemon-Showdown,PS-Spectral/Spectral,Kokonoe-san/Glacia-PS,Mystifi/Exiled,SolarisFox/Pokemon-Showdown,KewlStatics/Shit,AWailOfATail/Pokemon-Showdown,HoeenCoder/SpacialGaze,aakashrajput/Pokemon-Showdown,ShowdownHelper/Saffron,cadaeic/Pokemon-Showdown,cadaeic/Pokemon-Showdown,AnaRitaTorres/Pokemon-Showdown,Kokonoe-san/Glacia-PS,svivian/Pokemon-Showdown,TbirdClanWish/Pokemon-Showdown,azum4roll/Pokemon-Showdown,ShowdownHelper/Saffron,xCrystal/Pokemon-Showdown,DesoGit/Tsunami_PS,jd4564/Pokemon-Showdown,Flareninja/Showdown-Boilerplate,PS-Spectral/Spectral,Bryan-0/Pokemon-Showdown,AustinXII/Pokemon-Showdown,CreaturePhil/Showdown-Boilerplate,svivian/Pokemon-Showdown,Volcos/SpacialGaze,panpawn/Gold-Server,Enigami/Pokemon-Showdown,ZestOfLife/FestiveLife,Guernouille/Pokemon-Showdown,Enigami/Pokemon-Showdown,DarkSuicune/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,Sora-League/Sora,urkerab/Pokemon-Showdown