postutil.js - refactor create()