Properly structuring serialization methods