Make it a module scope function and document its purpose.