Emergence of the four layer dynamical regime in turbulent pipe flow