Cleans up domain creation.