reduced duplication in friendships controller