Added magic method on the spec factory

Fix #8 

Is this a good idea? It makes the factory look more simple. The drawbacks are that the IDE will not be able to type hint this.