PIM-3535: allow to import YAML files for Behat, and change filter registry API

| Q                    | A
| -------------------- | ---
| Bug fix?             | N
| New feature?         | N
| BC breaks?           | N
| CI currently passes? | Y
| Tests pass?          | Y
| Scenarios pass?      | running
| Checkstyle issues?*  | N
| PMD issues?**        | N
| Changelog updated?   | -
| Fixed tickets        | -
| DB schema updated?   | -
| Migration script?    | -
| Doc PR               | -
I prefer the if/else form