Remove unused interface elements.