Refactoring which-function-mode config