Reduced published API of render to just render_form. Extracted repeating rendering to a separate function.