Refactor server-side `render`.