Created the common adapter class; moved allocation / deallocation responsibility for request handlers into services; added the random number adapter.