Decouple actor logic from concurrency code.