Refactor editor for sector2ticket