Extract method
Change variable name
Move method
Replace temp with query