Refactor using LoopBack 2.x