Creates a fragment factory.
Example usage:
FragmentFactory.create { addRule(myRule)}
Adds the rule to the created fragment factory.