Clean up unused parameters passed to some functions.