Move config hash coercion into separate method
Fix reek warnings