Also I'd move it into a new file in `helpers/api/apimodeltodictconverter.py`, and add unit tests :)