Use similar logic for 'case' outdent (needs refactor)