Company#addFactory: uses "def" name when undefined