Remove unused bits and pieces.