Refactor into IntelliJ Module as Maven project.