chore(case): clean up context when transforming a case