Change the method

Removed the static method so you can instantiate the repository with the method getRepository