Logically the rearrangement in (5) "ought" to work as in (3), but in practice it doesn't. This is probably because "the way in which" is somewhat idiomatic, and also because of some general restrictions on the use of "the way" to refer to a previously mentioned method. For example, "The way has proved to be highly efficient" is unnatural too.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.