Pass precedence directly
Flags instead of settings object
settings -> flags