Simplify render logic to avoid dead code.