Refactor for maven.