Rename extractId, move it to dedicated helper,  use "id" instead of "_id" in it