With 'serve' we have a defined manner to serve these requests.
If anybody (iotAgent or contextBroker, ot whom it may be) needs to alter this default behaviour. another function is sent to restInit.
My guess is a high percentage of possible users would use the 'serve' implementation.
So, no, I think 'serve' should stay inside the library to avoid unnecessary copies of the same function.