Origin is not allowing crucial functionalities. For example you can't use dependencies, so page objects are out of the question. My workaround is to use flag chromeWebSecurity = false. With this flag turned off I was able to remove origin from my code completely. Good luck!