Divide Render() into small apis