Fix typo 156->145 in export table. Factor out redundant variables for easier maintenance.