Rename id to key where used as document key.