Cleanup: simplified serializer initialization

Minor changes.