This seems to be used only by the testing code at the moment. If the application code doesn't need it, it would be better to move it.