Use centralized function for tps-rpm
Improvements to analyze registration code