Split out build_options() helper function.