Remove main() from Domain