Cleanup RenderCommand code

RenderCommand code is cleaner