Break option settings into separate function