Clean up stars code