Moved ticket bucket creation to dedicated function.