prevent creation of autowired config route if directive is found in the definition template