writer: Normalize 'cls' value to 'memory' for in-memory instantiation
And keep the old key for backward compatibility.
Test Plan
tox
Note: We no longer have any routine to setup kafka in the dev's machine. I could not test fast enough the diff, i rely on the CI here.
Migrated from D2017 (view on Phabricator)