Fixing ProjectController::add() complexity