Refactor: Extract trait_ref_of_method
function
#3851
Merged
trait_ref_of_method
function
#3851