Refactor friend requests and the methods which use them.