Remove history fields permanently and clean up empty reference and refer...

...enceType fields.