Factory library - synchronous method
factory function with unit tests
Refactor factory functions in module
Extract factory module in separate file