Refactor third case