assistant2: Extract method for adding a new profile to the settings (#27810)

This PR extracts a method for adding a new profile to the settings to
reduce the amount of code required inline.

Release Notes:

- N/A
8a212be0b1Marshall Bowers committed on 3/31/2025, 10:06:35 PM· committed by GitHubparent9bbb1e5
2 files changedLine totals unavailable