refactor: move singleton model into curry-lib