Removed redundant code from Grid rendering.