Refactor into Maven project.