Adding: refactored biz-logic out of adapter.js