clean up dead TRule code