Refactoring render_*-methods