Refactorize plumbing/models/exporters.py.