For now I'll move this function outside of __init__.py so at least this module is cleaner...