this seems like it should be a method in the factory that can be used any time you need a stub or view for the contraints extension?