Refactory: extract method