On the dynamics of curved pipes transporting fluid Part II: Extensible theory