Refactor old parameter name for document caseId