Modular model building for vehicular traffic systems with macroscopic dynamics