Refactoring of form_for.