Changed repositories returning class of factory

* Removed all Repository class parameters because is something very related to the entity definition
* Changed all the tests