extract object starting to a method