Move normalize to formats mixin and fix idb, memcache and githubdb.