move line_identity related functions from cti
Merge '4205-history-performance-3'