Moves AllowPatterns from Options to global var allowOriginPatterns