If factory returns a value use as export.

from spec: 'If the factory function returns a value (an object, function, or any value that coerces to true), then that value should be assigned as the exported value for the module.'