Cleanup unused headers, data members and functions.