old_contents: from twisted.application import strports
  from twisted.internet import reactor
  from twisted.python import usage
  from twisted.web import server
  
  from .api import AirtimeServiceApp
  
  
  DEFAULT_PORT = '8080'
  
  
  class Options(usage.Options):
      """Command line args when run as a twistd plugin"""
      # TODO other args
      optParameters = [["port", "p", DEFAULT_PORT,
                        "Port number for airtime-service to listen on"],
                       ["database-connection-string", "d", None,
                        "Database connection string"]]
  
      def postOptions(self):
          if self['database-connection-string'] is None:
              raise usage.UsageError(
                  "--database-connection-string parameter is mandatory.")
  
  
  def makeService(options):
      app = AirtimeServiceApp(
          options['database-connection-string'], reactor=reactor)
      site = server.Site(app.app.resource())
      return strports.service(options['port'], site)
  
new_contents: from twisted.application import strports
  from twisted.internet import reactor
  from twisted.python import usage
  from twisted.web import server
  
  from .api import AirtimeServiceApp
  
  
  DEFAULT_PORT = '8080'
  
  
  class Options(usage.Options):
      """Command line args when run as a twistd plugin"""
      optParameters = [["port", "p", DEFAULT_PORT,
                        "Port number for airtime-service to listen on"],
                       ["database-connection-string", "d", None,
                        "Database connection string"]]
  
      def postOptions(self):
          if self['database-connection-string'] is None:
              raise usage.UsageError(
                  "--database-connection-string parameter is mandatory.")
  
  
  def makeService(options):
      app = AirtimeServiceApp(
          options['database-connection-string'], reactor=reactor)
      site = server.Site(app.app.resource())
      return strports.service(options['port'], site)
  
subject: Remove unnecessary TODO.