Separate function for switching option hyphenation to underscores for
assignment to object attributes.