Removing unneeded stuff from the completion file