Cleaning up the league client code.