Use Hash#fetch to replace conditional
Explicitly name literal earameter to document_metadata