At present domain mod implementation resides in the context file, which doesn't allow for direct access through the domain mod itself. To keep code re-usable and consistent it would be good to have a php implementation.
DomainMod::createFixture(array $data);