Refactored the pom files for modules.