refinement: extract objects and methods.