Clean up domain def