Decompose AWS CloudFormation templates into granular pieces which can be used by aws-cfn-compiler