Remove unneeded definitions.