Refactoring: use ORM to display form fields