```ruby
######################################
#
# This file is run on every deploy.
# Ensure any changes account for this.
#
######################################

unless ENV['GOVUK_APP_DOMAIN'].present?
  abort "GOVUK_APP_DOMAIN is not set.  Maybe you need to run under govuk_setenv..."
end

backends = {
  'canary-frontend' => {'tls' => false},
  'licensify' => {'tls' => true},
  'tariff' => {'tls' => false},
}

backends.each do |name, properties|
  if properties['tls'] == true
    protocol = 'https'
  else
    protocol = 'http'
  end
  url = "#{protocol}://#{name}.#{ENV['GOVUK_APP_DOMAIN']}/"
  puts "Backend #{name} => #{url}"
  be = Backend.find_or_initialize_by(:backend_id => name)
  be.backend_url = url
  be.save!
end

routes = [
  %w(/apply-for-a-licence prefix licensify),

  %w(/trade-tariff prefix tariff),

  %w(/__canary__ exact canary-frontend),
]

routes.each do |path, type, backend|
  puts "Route #{path} (#{type}) => #{backend}"
  abort "Invalid backend #{backend}" unless Backend.where(:backend_id => backend).any?
  route = Route.find_or_initialize_by(:incoming_path => path, :route_type => type)
  route.handler = "backend"
  route.backend_id = backend
  route.save!
end
```

Remove the trade tariff prefix route registration.
user
```ruby
######################################
#
# This file is run on every deploy.
# Ensure any changes account for this.
#
######################################

unless ENV['GOVUK_APP_DOMAIN'].present?
  abort "GOVUK_APP_DOMAIN is not set.  Maybe you need to run under govuk_setenv..."
end

backends = {
  'canary-frontend' => {'tls' => false},
  'licensify' => {'tls' => true},
}

backends.each do |name, properties|
  if properties['tls'] == true
    protocol = 'https'
  else
    protocol = 'http'
  end
  url = "#{protocol}://#{name}.#{ENV['GOVUK_APP_DOMAIN']}/"
  puts "Backend #{name} => #{url}"
  be = Backend.find_or_initialize_by(:backend_id => name)
  be.backend_url = url
  be.save!
end

routes = [
  %w(/apply-for-a-licence prefix licensify),
  %w(/__canary__ exact canary-frontend),
]

routes.each do |path, type, backend|
  puts "Route #{path} (#{type}) => #{backend}"
  abort "Invalid backend #{backend}" unless Backend.where(:backend_id => backend).any?
  route = Route.find_or_initialize_by(:incoming_path => path, :route_type => type)
  route.handler = "backend"
  route.backend_id = backend
  route.save!
end
```
assistant