Refactoring render method on a RenderObject to conserve memory of server