[serializer] refactor block
[extension_registry] refactor block