Refactor forms.py.