removeField method in Record class