Revert commit d8540c5 to go back to a read-only exported module.
This is a potentially breaking change for any consumer which override this module's exports members for testing purpose; but is advised to prepare for native ES6 modules becoming the standard.