refactor asciidoctor login into a helper class