I moved a lot of the friending logic into the new Friending class for sharing between different APIs.