Original: It remained a tropical storm until later that morning, when it weakened to a tropical depression ahead of a powerful cold front with little deep convection remaining in the system.
Simplified: It remained a tropical storm until later that morning. Then it weakened to a tropical depression ahead of a powerful cold front with little deep convection remaining in the system.