Cleanup templateprops