extract method refactoring add location method out