Can you pull this block into a method?