Refact to Maven project.