def removeFactory(self, identifier):
factory = self._factories.pop(identifier)<EOL>factory.doStop()<EOL>return factory<EOL>
Removes a factory.

        After calling this method, remote clients will no longer be
        able to connect to it.

        This will call the factory's ``doStop`` method.