Refactor parseLegacy.
Build RegExp for exclusion rules in constructor.