[ASIO] Refactored some code for Actors.