Refactor case details