hazel refactoring