Remove a done TODO
Fix #745: Generate the historical entry of attachments affter deletions instead before