Remove obsolete states