[mlpl][SmartTime] Clean up with a helper function.