Refactor partialize module to package