Refactored code in the SSM file parser.