Moved the friend getting behavior to its own method in the friends app.