Move the private get_inner function of OptGroup into its own private
trait.
Remove the borrow() to use the deref trait instead. Remove useless priv
qualifiers. Update the attributes to the new syntax.