Remove some obsolete code in client stub generation