Refactor render code.