Drop apply_tm

This seems not to be used, so remove it. If it is considered a work
in progress then it can be recovered in a separate working branch.