Heyho,
a function to preserve some not all settings would be nice.
As a function parameter simply an array with the keys and you get back an array with the keys and the values.
Example:
<?php
$settings = settings()->only('site_name', 'site_url', 'site_xyz'...)
Kind regards