Minor rendering code cleanup.