Refactor qmake project files.