Refactored and removed duplicate code
Refactored and removed duplicate code

ClintonCao/UnifiedASATVisualizer,ClintonCao/Contextproject-TSE,ClintonCao/UnifiedASATVisualizer,ClintonCao/Contextproject-TSE,ClintonCao/Contextproject-TSE,ClintonCao/UnifiedASATVisualizer