Refactor Extract Method