Remove old code to remove duplicate engine state which was used to work-around a bug since 3.x saved duplicates but broke with 4.x separate i/o devices. Add a new variant to purge old unused states per backend (after sorting).