How are the duplicated functions eliminated? Is it done automatically somewhere else, before the remoting metadata reaches rest-adapter?