Extract option partials

This reduces duplication and should make it easier to change formatting
of all options in the future. It does make it a little harder to follow
though since the partials go several levels deep.