refactor as maven