I will rework this once we have strongloop/loopback#287.