Combining cosmic microwave background datasets with consistent foreground modelling | Synapse