Simplify settings.php, using array iteration