A compact refactoring of RelationshipsController