Support for updating middleware chains affected by changed options