I've created a pull request with changes across cordova-lib that should make it much easier to consolidate the platform specific code in cordova-lib to reduce duplication and maybe eventually move this code to the platforms repos.
https://github.com/apache/cordova-lib/pull/183 Feedback is welcome. Those changes only deal with interfacing the platform specific code from cordova/metadata/ and plugman/platforms/ dirs, the dirs themselves and their contents weren't changed yet.