Moved serialization from views to renderer.