Refactor common methods into util.py.