Why is the `array_merge` happening twice? Can we do this once and reuse the options.