Remove unused special member functions and reformat.