Removing unneeded injections