Add trigger factory & setup trigger' spec