Small code refactor in CRefactorFrontend