Factor out forms into one central template.