This reverts commit 8bf4c40a. This reverts commit 7b0be962. This reverts commit 94454442. Some compilers on some buildbots didn't accept the specialization of is_same_method_impl in a non-namespace scope.