Refactored customfactoryfragment to use delegate rather than object.
Refactored the way that triggers work so that they work with delegates not some trigger interface.