Remove unneeded extensions