Move MER parsing to util