I wanted to extract some functionality from an app into an external binary to use with possibly kotlin native. Best way to go about this? Create a new project, copy the corresponding folders over, and resolve dependencies, or can intellij help me with the figuring out internal dependencies part?