Refactor starship operator