Simplified calculation of removed resources in InMemoryRepository::remove()