Removes code duplication (code climate)

No gain but it's "better": https://codeclimate.com/github/Mogztter/asciidoctor/compare/code-climate
Yes, the extract method in RubyMine is sometimes confused with `return` and parameters, I already did a little cleanup