Cleanup HXML templates