Remove unused keys.