Factor out definition finding and use that for go to symbol.