Reduce the minimal code needed for defining and adding a marginal distribution to an input object.
Subtasks