Cleanup legacy elements.