Move transformTo to api.transform.js