Cleaning up ilvl update code