Refactor code that determines if an HttpModule is processed