The function passed to reduce here appears to be a duplicate of the 'parseOptions' function defined at the top.