Removes code duplication (code climate)

No gain but it's "better": https://codeclimate.com/github/Mogztter/asciidoctor/compare/code-climate
I'd like to avoid a method call here atm since this is an extremely hot line in the code.