from a magic number in the code to a configurable list in configuration.yaml
using the chain of responsibility pattern.