Ensuring the DOI job properly behaves
Extracting a chunk of logic
Appeasing rubocop