Extract moment creation to its own modules.