Extract cordova default plugins to class