- removed unnecessary casts - removed unnecessary throw statements
the segments had been there to create a tenant-infrastructure but were never be used since that was all much too complex. There will be a replacement using a solr navigation using a segment field in the search index.