Extracted inventory block rendering code from RenderBlocks.