Refactor CallbackMethodConfigureScanner to reduce Cyclomatic Complexity