Move Module::gendocfile into a free function