Refactor deleteRecord code.
Implement `deletedRecords` meta attribute.