Remove unneeded returns and parameters in mains.