Refactor cscope file generator.