Removes unnecessary fields from the header file.