7141393: [macosx] CARemoteLayer code refactoring and unit test

Reviewed-by: dmarkov, jdv
6 files changed