I would move the definition of `AccountsFormset` to `forms.py`