Correct way of updating configuration from an extension?

Awesome, thank you!