Refactor core api pom