Refactoring for CordovaSim Eclipse plugin in progress