Refactor XML serializer to not depend on `serialized_attributes`