We use render_controls.jsp in many places. Its displays the controls for portlets.
Code duplications can be avoided with a tag.
We have tons of issues related to code duplications (like different behaviour and different look here and there, especially when publishing/exporting from portlet, from control panel, from the page, etc, so I set the priority to Major.