Minor refactoring for interceptor scanning logic