Move GetRuntimeClass and GetRuntimeMethod out to extension methods.