Cleanup unused pieces.