factor out logic for suppressing command generation when changing the users domain model as a result of executing commands