refactoring: let ClangService run as an instance rather than static