TSP-4673 Remove ticketscript-specifc references and general cleanup