Hello,
We can extract it in different files, default values we will get form template.xml file. Rules we can get the logic from manifest.xsf file and conditional formatting from view1.xsl file.
You will get source files follow these steps,
1. Open the form in design mode.
2. File -> Save as resource files to store the resource files in one location.